package cn.good.yan.t1.controller;

import cn.good.yan.t1.mapper.BillMapper;
import cn.good.yan.t1.pojo.Bill;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 演示 - 指标监控

 * @author shengren.yan
 * @create 2023-09-20
 */
@RestController
@RequestMapping("/bill")
public class BillController {

    @Autowired
    private BillMapper billMapper;

    /**
     * 查询
     */
    @GetMapping("/get6")
    public List<Bill> list() {
        List<Bill> byBid = billMapper.findByBid(6L);
        return byBid;
    }

}

